<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1 = parseInt(prompt("请输入数字"));
        var num2 = parseInt(prompt("请再输入一个数字"));
        if (num1 % 2 == 0 && num2 % 2 == 0 || num1 % 2 != 0 && num2 % 2 != 0) {
            alert("两个数的奇偶性相同")
        }else{
            alert("两个数的奇偶性不同")
        }
    </script>
</body>
</html>